package exception;

/**
 * 自定义异常:通常用于定义那些不满足业务场景的异常
 * 自定义异常的几个要素：
 * 1、类名要见名知意
 * 2、继承自Exception(直接或间接继承都可以)
 * 3、提供所以类型的构造器
 *
 */
public class IllegaException extends Exception{
    public IllegaException() {
        super();
    }

    public IllegaException(String message) {
        super(message);
    }

    public IllegaException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegaException(Throwable cause) {
        super(cause);
    }

    protected IllegaException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
